package com.ts.test;

import com.gitee.apanlh.util.algorithm.KeyUtils;
import com.gitee.apanlh.util.algorithm.encrypt.symmetric.AES;
import com.gitee.apanlh.util.encode.HexUtils;

/**
 * @author Pan
 */
public class EncryptDemo {

    public static void main(String[] args) {

        String a = "{\"age\":2,\"btLimit\":3,\"carInfo\":1,\"career\":1,\"city\":\"株洲市\",\"creditLimit\":1,\"hbLimit\":1,\"insurancePolicy\":1,\"loanAmount\":2,\"overdue\":1,\"phoneMd5\":\"c1102b0be678c254530b3f5703e073f6\",\"providentFund\":1,\"realEstateInfo\":4,\"sesameCredit\":3,\"socialSecurity\":4}";
        String b = "bbedaa497611d5f33dbb6f7dab99b5d6";
        System.out.println(a);
        System.out.println(KeyUtils.generate256ToHexStr());
        System.out.println(AES.createEcb(HexUtils.decode(b)).encryptToHex(a));
        System.out.println(AES.createEcb(HexUtils.decode(KeyUtils.generate384ToHexStr())).encryptToHex(a));


    }

}
